package com.mentalhealthplatform.studentV3.repository;

import com.mentalhealthplatform.appModels.BookingLecture;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author Pear
 */
public interface BookingLectureRepositoryV3 extends JpaRepository<BookingLecture, Long> {
    List<BookingLecture> findByPhone(String phone); // 根据电话号码查找预约记录

    List<BookingLecture> findByLectureId(Long lectureId);
}
